import request from '@/utils/request'

// 获取类型列表
export function materialTypeList(query) {
  return request({
    url: 'com.mmk.reservation.api.AdminMaterialTypeProvider/1.0.0/listMaterialTypes.html',
    method: 'post',
    data: query
  })
}
// 删除
export function materialTypeListDelete(query) {
  return request({
    url: 'com.mmk.reservation.api.AdminMaterialTypeProvider/1.0.0/deleteMaterialTypeById.html',
    method: 'post',
    data: query
  })
}
// 添加类型
export function materialTypeListAdd(query) {
  return request({
    url: 'com.mmk.reservation.api.AdminMaterialTypeProvider/1.0.0/addMaterialType.html',
    method: 'post',
    data: query
  })
}
// 获取类型详情
export function materialTypeListDetails(query) {
  return request({
    url: 'com.mmk.reservation.api.AdminMaterialTypeProvider/1.0.0/getMaterialTypeById.html',
    method: 'post',
    data: query
  })
}
// 编辑类型
export function materialTypeListEdit(query) {
  return request({
    url: 'com.mmk.reservation.api.AdminMaterialTypeProvider/1.0.0/updateMaterialType.html',
    method: 'post',
    data: query
  })
}
